package org.ala.tiktools.redis.config;


/**
 * redis 配置项
 *
 * @author ala
 * @date 2024-11-27 14:51
 */
public class ConfigItem {

    /**
     *  redis地址
     */
    protected String host;
    /**
     * 端口
     */
    protected int port;
    /**
     *  密码
     */
    protected String password;
    /**
     *  database
     */
    protected int database;
    /**
     *  空闲连接数
     */
    protected int poolIdle;
    /**
     *  最大连接数
     */
    protected int poolMax;

    /**
     *  链接超时时间
     */
    protected int timeout = 6000;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getDatabase() {
        return database;
    }

    public void setDatabase(int database) {
        this.database = database;
    }

    public int getPoolIdle() {
        return poolIdle;
    }

    public void setPoolIdle(int poolIdle) {
        this.poolIdle = poolIdle;
    }

    public int getPoolMax() {
        return poolMax;
    }

    public void setPoolMax(int poolMax) {
        this.poolMax = poolMax;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
